<!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1" />
    <link rel="icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <title>React-best-practice</title>
  </head>
  <body>
    <div id="root"></div>
  </body>
  <script>
    // if ('serviceWorker' in navigator) {
    //     window.addEventListener('load', function () {
    //         navigator.serviceWorker.register('/service-worker.js')
    //             .then(function (registration) {
    //                 // 注册成功
    //                 console.log('ServiceWorker registration successful with scope: ', registration.scope);
    //             })
    //             .catch(function (err) {
    //                 // 注册失败:
    //                 console.log('ServiceWorker registration failed: ', err);
    //             });
    //     });
    // }
  </script>
</html>
